<extend name="Base:base" />
<block name="title">{$title}</block>
<block name="content">
    <div class="main-title">
        <h2>修改角色</h2>
    </div>
    <form action="" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">角色名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$role.name}">
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">角色描述<span class="check-tips">（用于后台用户所属角色）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="remark" value="{$role.remark}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">是否开启<span class="check-tips">（用于后台用户所属角色）</span></label>
            <div class="controls">
                <input type="radio" name="status" value="1" <if condition="$role['status'] eq 1">checked="checked"</if>/>&nbsp;开启 &nbsp;
                <input type="radio" name="status" value="0"  <if condition="$role['status'] eq 0">checked="checked"</if>/>&nbsp;关闭
            </div>
        </div>
        <div class="form-item">
             <input type="hidden" name="id" value="{$role.id}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">保存添加</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);
                    return false;">返 回</button>
        </div>
    </form>

</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('role')}');
    </script>
</block>